<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="惠信钱包，金融">
<meta name="description" content="描述描述描述" />
<%@include file="/WEB-INF/base/commRoot.jsp"%>
<script type="text/javascript" src="/js/jquery.js"></script> 
<script type="text/javascript" src="/js/view/static/static.js"></script>
<script type="text/javascript" src="/js/view/user/login.js"></script>
<script type="text/javascript" src="/js/placeholder.js"></script>
<title>忘记密码</title>
</head>
<body>
<!--header-->
<%@include file="/head.jsp"%>
<!--/header-->
<!--main-->
<div class="main_bg">        	
	<div class="regist">
    	<h3 class="find_pwd_tit"> 找回密码</h3>
    	<form id="nextForm" name="nextForm" method="post" action="${root}/userAction_toResetPwd.action">
	        <ul>
	            <li class="clearfix">
	            	<label>手机号：</label>
	                <div class="position"><input type="text" id="mobile" name="mobile" value="<s:property value="mobile"/>" class="input" placeholder="请输入您的手机号码" onblur="testFirstLoginMobile();"  maxlength="11" /><span class="in_dea_text"></span></div>
	                <p class="suc_tips" id="mobileRight" style="display:none;"></p>
	                <p class="err_tips" id="mobileMsg" style="display:none;"></p>
	            </li>
	            <li class="clearfix">
	       	    <label>验证码：</label>
	                <div class="position"><input type="text" id="checkCode" name="checkCode" class="input" style="width:226px;" readOnly="readonly" placeholder="手机验证码" onblur="testFirstLoginMobileCode();" maxlength="6" /><span class="in_dea_text"></span></div>
	            	<a href="javascript:void(0);"  id="hqver" name="hqver" class="l send">发送</a>
	            	<p class="err_tips" id="checkCodeMsg" style="display:none;"></p>
	            	<p class="suc_tips" id="checkCodeMsgRight" style="display:none;"></p>
	            </li>	            
	            <li class="clearfix"><a href="javascript:void(0);" class="mar_li btn l submitNextForm">下一步</a></li>
	        </ul>
        </form>
    </div>

            


</div>
<!--/main-->
<!--footer-->
<%@include file="/footer.jsp"%>
</body>

<script type="text/javascript">
$(".submitNextForm").bind("click", function(){
	if (!testFirstLoginMobile() || !testFirstLoginMobileCode()) {
		return;
	}
	$("#nextForm").submit();
})

$("#hqver").click(function(){sendCodeInForgetPwd();});

<s:if test="dataMap.mobileErrorMsg != null && dataMap.mobileErrorMsg !='' ">
	$("#checkCode").removeAttr("readonly");	//移除不可输入属性
	$("#mobileMsg").show();
	$("#mobileMsg").text("<s:property value="dataMap.mobileErrorMsg"/>");
</s:if>

<s:if test="dataMap.checkCodeErrorMsg != null && dataMap.checkCodeErrorMsg !='' ">
	$("#checkCode").removeAttr("readonly");	//移除不可输入属性
	$("#checkCodeMsg").show();
	$("#checkCodeMsg").text("<s:property value="dataMap.checkCodeErrorMsg"/>");
</s:if>
</script>

</html>
